home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Telnet 2.6.1d1 4⁄26⁄94 Folder / source / TelnetHeader.h < prev    next >
Text File  |  1994-04-16  |  2KB  |  78 lines

  1. /****************************************************************
  2. *    NCSA Telnet for the Macintosh                                *
  3. *                                                                *
  4. *    National Center for Supercomputing Applications                *
  5. *    Software Development Group                                    *
  6. *    152 Computing Applications Building                            *
  7. *    605 E. Springfield Ave.                                        *
  8. *    Champaign, IL  61820                                        *
  9. *                                                                *
  10. *    Copyright (c) 1986-1994,                                    *
  11. *    Board of Trustees of the University of Illinois                *
  12. ****************************************************************/
  13.  
  14. #ifdef    MPW
  15. #pragma load ":obj:sys.dump"
  16. #endif
  17.  
  18. #define    NCSA_ENC
  19.  
  20. // Think C has dangerous pattern always on, with no easy way to 
  21. //    disable it.  So, I've isolated the problem to this macro so
  22. //    it can be changed when Think C supports the Universal Headers.
  23. //    --JMB 2/94
  24. #ifdef    THINK_C
  25. #define    PATTERN(x) x    // Hosed Pattern definition
  26. #define NO_UNIVERSAL    // No universal headers
  27. #define    M68K            // Compiling for 68K
  28. #endif
  29.  
  30. #ifdef    MPW
  31. #define PATTERN(x) &x    // Good Pattern definition
  32. #define    NO_UNIVERSAL    // I haven't installed the Uni headers for my MPW yet
  33. #define    M68K            // Compiling for 68K
  34. #endif
  35.  
  36. #ifdef    __MWERKS__
  37. #define PATTERN(x) &x    // Good Pattern definition
  38. #endif
  39.  
  40. #if defined(powerc) || defined(__powerc)
  41. #define __powerpc__
  42. #endif
  43.  
  44. // Using settings of NO_UNIVERSAL and __powerpc__, set up our SIMPLE_UPP macro
  45.  
  46. #ifdef    NO_UNIVERSAL
  47. #define    SIMPLE_UPP(routine,what)        \
  48. ProcPtr routine##UPP = (ProcPtr)&routine
  49.  
  50. #define    PROTO_UPP(routine, what)            \
  51. extern ProcPtr routine##UPP
  52.  
  53. #else    // ifdef NO_UNIVERSAL
  54.  
  55. #define PROTO_UPP(routine, what)        \
  56. extern what##UPP routine##UPP;
  57.  
  58. // Have universal headers, compiling PPC
  59. #ifdef    __powerpc__
  60. #define SIMPLE_UPP(routine,what)        \
  61. RoutineDescriptor routine##RD =    \
  62. BUILD_ROUTINE_DESCRIPTOR(upp##what##ProcInfo,routine);\
  63. what##UPP routine##UPP=(what##UPP)&routine##RD    \
  64.  
  65. #else    // ifdef __powerpc__
  66.  
  67. // Have universal headers, compiling 68K
  68. #define    SIMPLE_UPP(routine,what)        \
  69. what##UPP routine##UPP=(what##UPP)&routine
  70.  
  71. #endif    // ifdef __powerpc__
  72. #endif    // ifdef NO_UNIVERSAL
  73.  
  74. #include "typedefs.h"
  75. #include "globaldefs.h"
  76. #include "resrcdefs.h"
  77. #include <MacTCPCommonTypes.h>
  78. #include "Preferences.h"